import request from '@/utils/request'

const api = {
  goods: '/goods',
  categories: '/categories'
}

export function getGoods(params) {
  return request({
    url: api.goods,
    method: 'get',
    params,
    cache: true
  })
}
export function getCategories(params) {
  return request({
    url: api.categories,
    method: 'get',
    params,
    cache: true
  })
}
